use dirs::home_dir;

use crate::{DATA_ROOT, FILE_PATH, STATIC_PATH};

pub fn data_dir() -> String {
    let mut data_dir = home_dir().unwrap();
    data_dir.push(DATA_ROOT);
    return data_dir.to_str().unwrap().to_string();
}

pub fn image_dir() -> String {
    format!("{}/{}/{}", data_dir(), STATIC_PATH, FILE_PATH)
}
